package com.ziki.wicketcms.common;

import org.apache.wicket.markup.head.filter.HeaderResponseContainer;

import com.ziki.bswicket.page.BsPage;
import com.ziki.wicketcms.common.panel.AdminHeaderPanel;
import com.ziki.wicketcms.common.panel.AdminLeftPanel;

public class BaseAdminPage extends BsPage {
    private static final long serialVersionUID = 1L;

    public BaseAdminPage() {
        add(new AdminHeaderPanel("headerPanel"));
        add(new AdminLeftPanel("leftPanel"));

        addCss("res/bootstrap/css/bootstrap.css");
        addCss("res/font-awesome/css/font-awesome.css");
        addCss("res/jquery-ui/themes/base/jquery.ui.base.css");
        addCss("res/font-awesome/css/font-awesome-ie7.css", "IE 7");
        addCss("res/google/css/font.css");
        addCss("res/custom/css/ace.min.css");
        addCss("res/custom/css/ace-rtl.min.css");
        addCss("res/custom/css/ace-skins.min.css");
        addCss("res/custom/css/ace-ie.min.css", "lte IE 8");
        addCss("res/custom/css/gims.css");

        addJavaScript("res/jquery-ui/ui/jquery-ui.js", true);
        addJavaScript("res/custom/js/ace-extra.min.js");
        addJavaScript("res/custom/js/html5shiv.js", "lt IE 9");
        addJavaScript("res/custom/js/respond.min.js", "lt IE 9");
        addJavaScript("res/bootstrap/js/bootstrap.js");
        addJavaScript("res/custom/js/ace-elements.min.js");
        addJavaScript("res/custom/js/ace.min.js");
        addJavaScript("res/custom/js/gims.js");

        // a container for all collected JavaScript contributions that
        // will be loaded at the page footer (after </body>)
        add(new HeaderResponseContainer("footerJS", "footerJS"));
    }
}